package proxy.cglibProxy;

public class CglibProxyTest {

    public static void main(String[] args) {
        MyService myServiceProxy = (MyService) ProxyFactory.getCglibProxy(new MyService());

        myServiceProxy.m1();

        System.out.println("-------------");

        String str = myServiceProxy.m2();
        System.out.println("返回数据：" + str);
    }

}
